uniform vec3 collision;

varying float dist;

void main(void) {
	gl_Position = ftransform();
	vec3 pos = vec3(gl_Vertex.x, gl_Vertex.y, gl_Vertex.z);
	dist = distance(pos, collision);
}